Script Library

The script library is a convenient method of accessing scripts you've written quickly and easily. This menu item mimiks the directory structure of the scripts subdirectory. By choosing a script from this area, it is really the same thing as choosing Run Script from the file menu.

When the scripts are loaded, the first line is searched for a commented line (eg "#My script title") or comment command (eg "[Comment=My Script Title]"). This comment will be use as the text in teh Script Library menu.

The script library, in combination with a few new commands we have implemented, makes it easy to write a script for almost any equation or set of calculations that you have to use over and over again. We have included new commands to display and retrieve information via a message box while the script is running.

Here is an example of a script that prompts for information and displays information in a dialog.

#Volume of Cylinder
[PromptVal=radius]
[PromptVal=height]
volume=pi*radius^2*height
[DispVal=volume:The volume of the cylinder is]

If you included this script in the "scripts" directory, you could easily access it by going to Tools:Script Library:Volume of Cylinder.

If you write any additional scripts, you can put them in the scripts subdirectory and they'll show up in the library. Also, if you write any scripts that might be useful to others, email it to us at newscript@graphcalc.com and we might include it in the next version of GraphCalc.